﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>双益机械信息化管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" type="image/ico" href="~/Content/themes/icon/user_home.png" />
    <link href="~/Scripts/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-easyui/jquery.min.js"></script>
    <script src="~/Scripts/jquery-easyui/jquery.easyui.min.js"></script>
    <script src="~/Scripts/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script src="~/Scripts/jquery-easyui/Extension/jquery-easyui-portal/jquery.portal.js"></script>
    <script src="~/Content/js/common.js"></script>
    <script src="~/Content/js/init.js" type="text/javascript"></script>
    <link href="~/Content/themes/table.css" rel="stylesheet" />
    <link href="~/Content/themes/icon.css" rel="stylesheet" />
    <!--处理仪表盘-->
  <script>     
      var RealName = "@ViewBag.RealName";//记录全局变量
      $(function () {
          $('#pp').portal({
              //width:auto,
              //height:auto,
              border: false,
              fit: true
          });


          var myProject = $('<div></div>').appendTo('body');
          myProject.panel({
              title: '我关注的项目',
              height: 550,
              closable: true,
              collapsible: true,
              href: '/Portal/MyProject',
          });
          $('#pp').portal('add', {
              panel: myProject,
              columnIndex: 0
          });
          var pPMsearch = $('<div></div>').appendTo('body');
          pPMsearch.panel({
              title: '项目/生产单据综合查询',
                height: 550,
              closable: true,
              collapsible: true,
              href: '/Portal/ProjectSearch',

          });
          $('#pp').portal('add', {
              panel: pPMsearch,
              columnIndex: 1
          });

          //var pNotice = $('<div></div>').appendTo('body');
          //pNotice.panel({
          //    title: '通知公告',
          //    height: 550,
          //    closable: true,
          //    collapsible: true,
          //    href: '/Portal/getNotice',

          //});
          //$('#pp').portal('add', {
          //    panel: pNotice,
          //    columnIndex: 2
          //});

          //var pOperview = $('<div></div>').appendTo('body');
          //pOperview.panel({
          //    title: '工时预警',
          //    height: 450,
          //    closable: true,
          //    collapsible: true,
          //    href: '/CapacityEst/WeekOper',

          //});
          //$('#pp').portal('add', {
          //    panel: pOperview,
          //    columnIndex: 1
          //});




          //  add();

      });
      function add() {
          for (var i = 0; i < 3; i++) {
              var p = $('<div/>').appendTo('body');
              p.panel({
                  title: 'Title' + i,
                  content: '<div style="padding:5px;">Content' + (i + 1) + '</div>',
                  height: 100,
                  closable: true,
                  collapsible: true
              });
              $('#pp').portal('add', {
                  panel: p,
                  columnIndex: i
              });
          }
          $('#pp').portal('resize');
      }

      function remove() {
          $('#pp').portal('remove', $('#pgrid'));
          $('#pp').portal('resize');
      }

    </script>

</head>
<body class="easyui-layout">
    <div data-options="region:'north',border:false" style="height: 30px; background-color: #F5F5F5; padding: 1px; font-size:large;">
        <img src="~/Content/images/Logo.png" width="20" height="18" />双益机械信息化管理系统
        <div style="position: absolute; right: 5px; top: 5px; font-size:small">
            欢迎您：<span style="color: #0082ff; ">@ViewBag.RealName</span>@ViewBag.TimeView 
            <a href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-set1'" onclick="changePwd('');" >修改密码</a>
            <a href="javascript:void(0);" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-stop'" onclick="loginOut();" >退出系统</a>
        </div>
    </div>

    <div data-options="region:'west',split:true,title:'功能导航'" style="width: 180px; background-color: white;">
        <div id="RightAccordion" class="easyui-accordion">
        </div>
    </div>
    <div data-options="region:'center'">
        <div id="tabs" class="easyui-tabs" fit="true" border="false" data-options=" tools:[
                    {iconCls : 'icon-arrow_refresh',text:'刷新',handler:refreshTab},
                    {iconCls : 'icon-delete3',text:'关闭全部',handler:closeTab}
                    ]">
            <div id="home" title="系统门户" data-options="iconCls:'icon-house',closable:false" style="padding:10px">
                <div class="easyui-layout" data-options="fit:true">
                    <div hidden="hidden" data-options="region:'north',title:''" style="overflow:auto; height:25px ;border:1px,solid,blue; width:150px">
                    </div>
                    <!-- 中间布局，display:inline;占位 -->
                    <div data-options="region:'center'">

                        <div id="pp" style="position:relative">
                            <div style="width:40%;">
                                @*<div title="我的项目" collapsible="true" closable="true" style="height:200px;padding:5px;">
                                        <div class="t-list"><a onclick="addTab('角色管理', '/Role/Index')" >角色管理</a></div>
                                        <div class="t-list"><a href="/Project/Projectgrid">生产任务单</a></div>
                                        <div class="t-list"><a href="/Produce/ShopJobMgr">车间作业管理</a></div>
                                        <div class="t-list"><a href="/Produce/RushOrder">加急订单</a></div>
                                        <div class="t-list"><a href="http://www.baidu.com">baidu</a></div>
                                        <div class="t-list"><a href="http://www.jeasyui.com/tutorial/layout/panel2.php">Create XP style left panel</a></div>
                                    </div>*@
                            </div>
                            <div style="width:60%;">

                                @*</div>
                                    <div style="width:10%;">
                                    </div>*@
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
